Add GtkHeaderBar to the a11y tests
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 Jul 2013 02:30:15 +0000 (22:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 1 Jul 2013 02:33:12 +0000 (22:33 -0400)
testsuite/a11y/Makefile.am
testsuite/a11y/headerbar.txt [new file with mode: 0644]
testsuite/a11y/headerbar.ui [new file with mode: 0644]

index ad0990c6fc5c04f93ae68e21916d294ac9816249..84a14d2953f6dc329b02a1f234dfb03b4925f1b1 100644 (file)
@@ -75,6 +75,7 @@ testdata = \
        combos.ui combos.txt \
        listbox.ui listbox.txt \
        stack.ui stack.txt \
+       headerbar.ui headerbar.txt \
        $(NULL)
 
 test_in_files = \
diff --git a/testsuite/a11y/headerbar.txt b/testsuite/a11y/headerbar.txt
new file mode 100644 (file)
index 0000000..f616839
--- /dev/null
@@ -0,0 +1,49 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gtk
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  headerbar1
+    "filler"
+    parent: window1
+    index: 0
+    state: enabled sensitive showing visible
+    toolkit: gtk
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    button1
+      "push button"
+      parent: headerbar1
+      index: 0
+      name: Yes
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: -1 x -1
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
+    page2
+      "push button"
+      parent: headerbar1
+      index: 1
+      name: No
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: -1 x -1
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
diff --git a/testsuite/a11y/headerbar.ui b/testsuite/a11y/headerbar.ui
new file mode 100644 (file)
index 0000000..01216ab
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkHeaderBar" id="headerbar1">
+        <property name="visible">True</property>
+        <property name="title">Title</property>
+        <property name="subtitle">Subtitle</property>
+        <child>
+          <object class="GtkButton" id="button1">
+            <property name="label" translatable="yes">Yes</property>
+            <property name="visible">True</property>
+          </object>
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="page2">
+            <property name="label" translatable="yes">No</property>
+            <property name="visible">True</property>
+          </object>
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>